package com.zivwu.library.widget.banner;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import android.support.v4.view.ViewPager;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;


@RunWith(AndroidJUnit4.class)
public class BannerTest {


    private Banner banner;

    @Before
    public void init() {
        Context context = InstrumentationRegistry.getTargetContext();
        banner = new Banner(context);
    }

    @Test
    public void testGetViewPager() throws Exception{
        ViewPager pager = banner.getPager();
        assertNotNull(pager);
    }

}